package Connexion;

import java.sql.Connection;
import java.sql.ResultSet;

public abstract class ConnectionFactory {
	
	String host="", user="", mdp ="";
	int typeConnection;
	Connection connection;
	boolean connected=true;
	ResultSet rs;	
	
	public ConnectionFactory(String host, String user, String mdp, int typeConnection){
		this.host=host;
		this.user=user;
		this.mdp=mdp;
		this.typeConnection = typeConnection;
	}
	
	public abstract void connect();
	public abstract Object getConnection();
	public abstract boolean isConnected();
	public abstract void executeQuery(int type, String name, int year, int genre);
	public abstract ResultSet getResults();

	
	

}
